package org.nlp2rdf.navigator.junit.knowledgebases;

import org.junit.Test;
import org.nlp2rdf.navigator.client.exception.NKEQueryException;
import org.nlp2rdf.navigator.component.search.SearchSparql;
import org.nlp2rdf.navigator.util.LogHelper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Sebastian Hellmann <hellmann@informatik.uni-leipzig.de>
 */
public class DBpedia {

    {
		LogHelper.touch();
	}

	ApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "navigator_dbpedia.xml" });

	SearchSparql s1 = (SearchSparql) context.getBean("dbpedia.search1");
	SearchSparql s2 = (SearchSparql) context.getBean("dbpedia.search2");
	SearchSparql s3 = (SearchSparql) context.getBean("dbpedia.search3");

    @Test
    public void testSearch() throws NKEQueryException{
        s1.search("house", 10);

    }
}
